package com.yqg.manage.mapper;

import com.yqg.manage.entity.Menu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author suzhuang
 * @since 2023-07-05
 */
public interface MenuMapper extends BaseMapper<Menu> {
    @Select("select id,menu_name from menu where pid is null;")
    List<Menu> findAllPid();
}